package com.zhuanzhuan.hero.user.pojo.bo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName ContactVisibleBO
 * @Description
 * @Author hanjunjun
 * @Date 2024/7/9 14:17
 */
@Data
@NoArgsConstructor
public class ContactVisibleBO {

    /**
     * 是否可点击
     */
    private Boolean isVisible;

    /**
     * 不可点击时的文案  eg：该用户设置了联系方式不可见，直接跟他聊聊吧
     */
    private String tips;

    public ContactVisibleBO(boolean canClick, String tips) {
        this.isVisible = canClick;
        this.tips = tips;
    }

    public static ContactVisibleBO visible() {
        return new ContactVisibleBO(true, null);
    }

    public static ContactVisibleBO unVisible(String tips) {
        return new ContactVisibleBO(false, tips);
    }
}
